package com.bricker.laboratorymanagement.business.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bricker.laboratorymanagement.business.entity.Experiment;
import com.bricker.laboratorymanagement.business.model.ExpSelectModel;

import java.util.List;

public interface ExperimentService extends IService<Experiment> {

    /**
     * 分页多条件查询实验项目
     * @param expSelectModel
     * @return
     */
    public Page<Experiment> getExPerimentByPage(ExpSelectModel expSelectModel);

    /**
     * 管理员添加或修改实验项目
     */
    public void saveOrUpdateExPeriment(Long uId, List<Experiment> experiments);

    /**
     * 批量根据id删除实验项目
     */
    public void deleteExperimentByIds(Long uId,List<Long> ids);
}
